<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
<h:panelGroup id="messageSystem" rendered="#{loginSession.login.showGlobalMessage}">
    <center style="width: 100%">
        <div id="globalReport" class="globalReport">
            <p style="padding-top: -5px;"><h:outputText value="#{loginSession.login.globalMessage}"/></p>
        </div>
    </center>
</h:panelGroup>
<div class="logo" >
    <%-- <img style="position: relative;" src="../images1/logo-hiden.png" alt="SGT" /> --%>
    <a href="customerexpand.jsp?<h:outputText value="#{kapiMenu.md5url}"/>"><img  src="../images1/logo.png" alt="SGT" /></a>
</div>
<div class="divcontanerheader">
    <div class="divcontanerheaderchildtop1">
        <div class="menuheader" >
            <h:panelGroup rendered="#{loginSession.right.MENU_EMP_VIEW}">
                <div class="menuitem" >
                    <h:outputLink value="employeenew.jsp?#{kapiMenu.md5url}"><span><h:outputText value="Nhân viên" /></span></h:outputLink>

                </div>
            </h:panelGroup>

            <div class="menuitem_sub" >
                <div class="menuitem_sub1">
                    <h:outputText value="Khách hàng"/>
                </div>
                <div class="menuitem_sub2">
                    <h:graphicImage value="../images1/down_dropbox.png"/>
                </div>
                <h:panelGroup rendered="#{loginSession.right.MNU_MAN_CUS}">
                    <div class="show_menuheader">
                        <div class="item_show_menuheader">
                            <h:panelGroup rendered="#{loginSession.right.MENU_CUS_VIEW}">
                                <h:outputLink  value="customer.jsp?action=reloadGroupCN&#{kapiMenu.md5url}"><span><h:outputText value="Cá nhân" /></span></h:outputLink>
                            </h:panelGroup>
                        </div>
                        <div class="item_show_menuheader">

                            <h:panelGroup rendered="#{loginSession.right.MENU_COM_VIEW}">

                                <h:outputLink value="cuscompany.jsp?#{kapiMenu.md5url}"><span><h:outputText value="Công ty" /></span></h:outputLink>

                            </h:panelGroup>
                        </div>
                        <div class="item_show_menuheader">
                            <h:panelGroup rendered="#{loginSession.right.MENU_SUP_VIEW}" >
                                <h:outputLink   value="supplier.jsp?#{kapiMenu.md5url}"><span><h:outputText value="Đối tác" /></span>
                                </h:outputLink>

                            </h:panelGroup>
                        </div>
                        <div class="item_show_menuheader">
                            <h:panelGroup rendered="#{loginSession.right.MENU_CMA_VIEW}" >
                                <h:outputLink   value="workChargeCM.jsp?#{kapiMenu.md5url}"><span><h:outputText value="Chăm sóc" /></span>
                                </h:outputLink>
                            </h:panelGroup>
                        </div>
                    </div>
                </h:panelGroup>
            </div>
            <h:panelGroup rendered="#{loginSession.right.MNU_TOU_VIE}">
                <div class="menuitem" >
                    <h:outputLink  styleClass="nochildren" value="listTour.jsp?action=deleteSessionTour&#{kapiMenu.md5url}"><span><h:outputText value="Quản lý tour" /></span>
                    </h:outputLink>
                </div>            
            </h:panelGroup>
            <h:panelGroup rendered="#{loginSession.right.MNU_TOU_VIE}">
                <div class="menuitem" >
                    <h:outputText value="Quản lý Sale"/>
                </div>
            </h:panelGroup>
            <h:panelGroup rendered="#{loginSession.right.MNU_QLKH_LST}">
                <div class="menuitem_sub" >
                    <div class="menuitem_sub1">
                        <h:outputText value="Tài chính"/>
                    </div>
                    <div class="menuitem_sub2">
                        <h:graphicImage value="../images1/down_dropbox.png"/>
                    </div>

                    <div class="show_menuheader">
                        <h:panelGroup rendered="#{loginSession.right.MNU_FAC_VIE}">
                            <div class="item_show_menuheader">
                                <h:outputLink  value="financialAccount.jsp?#{kapiMenu.md5url}"><span><h:outputText value="Tài chính kế toán" /></span></h:outputLink>
                               
                            </div>
                        </h:panelGroup>
                        <h:panelGroup  rendered="#{loginSession.right.MNU_EXF_VIE}">
                            <div class="item_show_menuheader">
                               <h:outputLink   value="expectedFinancial.jsp?#{kapiMenu.md5url}"><span><h:outputText value="Tài chính dự kiến" /></span></h:outputLink>    
                            </div>    
                        </h:panelGroup>
                        <h:panelGroup rendered="#{loginSession.right.MNU_DEB_VIE}">
                            <div class="item_show_menuheader">
                              <h:outputLink value="debt.jsp?action=newpage&#{kapiMenu.md5url}"><span><h:outputText value="Công nợ" /></span></h:outputLink>
                            </div>
                        </h:panelGroup>



                    </div>
                </div>
            </h:panelGroup>
            <h:panelGroup rendered="#{loginSession.right.MENU_PRO_VIEW}">
                <div class="menuitem" >
                     <h:outputLink  value="project.jsp?#{kapiMenu.md5url}&action=loadproject&fis=0"><span><h:outputText value="Dự án" /></span></h:outputLink>
                </div>
            </h:panelGroup>
            <h:panelGroup rendered="#{loginSession.right.MNU_DOC_LST}">
                <div class="menuitem" >
                    <h:outputLink  styleClass="nochildren" style="width:100%;" value="documentmanager.jsp?#{kapiMenu.md5url}"><span><h:outputText value="Thư viện" /></span></h:outputLink>
                </div>
            </h:panelGroup>
            <h:panelGroup rendered="#{loginSession.right.MNU_MAL_VIE}">
                <div class="menuitem" >
                     <h:outputLink value="mailExtend.jsp?#{kapiMenu.md5url}"><span><h:outputText value="Mail" /></span></h:outputLink>
                           
                           
                </div>
            </h:panelGroup>
            <h:panelGroup rendered="#{loginSession.right.MNU_MES_VIE}">
                <div class="menuitem" >
                     <h:outputLink value="historySMS.jsp?#{kapiMenu.md5url}"><span><h:outputText value="SMS" /></span></h:outputLink>
                          
                </div>
            </h:panelGroup>
        </div>
        <div class="info_account" >

            <div class="info_account1" >
                <h:outputLink rendered="#{loginSession.right.MNU_DOC_LST}"  value="itemshowevent.jsp?#{kapiMenu.md5url}"><h:graphicImage value="../images1/new.png" /></h:outputLink>
            </div>
            <div class="info_account2" >
                <div class="item_acc1" style="width: 55%;text-align: right;" >
                    <h:outputLink  value="myprofile.jsp?#{kapiMenu.md5url}">
                        <h:outputText value="#{loginSession.login.hoten}" />
                        <f:param value="#{loginSession.login.id}" name="fn100M"></f:param>
                    </h:outputLink>
                </div>
                <div class="item_acc" style="width: 20%;">
                    <h:form>
                        | <a4j:commandLink action="#{userController.logOut}" value="Logout"></a4j:commandLink>

                    </h:form>
                </div>
                <h:panelGroup rendered="#{loginSession.right.MENU_ADM_VIEW}">
                    <div class="item_acc" style="width: 20%;">
                        | 
                        <h:outputLink  value="setting.jsp?#{kapiMenu.md5url}">
                            Setting
                        </h:outputLink>
                    </div>
                </h:panelGroup>
            </div>
        </div>

    </div>
    <div class="divcontanerheaderchildtop2">

    </div>

</div>



